package com.jianqiao.delivery.delivery.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * author: cyx
 * create: 2024/9/6 14:21
 **/
@Data
@TableName("delivery_trajectory")
public class TrajectoryEntity {

    @TableId(value = "id" ,type = IdType.AUTO)
    private String id;

    @TableField("delivery_id")
    private String deliveryId;

    @TableField("arrive_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date arriveTime;

    @TableField("context")
    private String context;

    @TableField("arrive_location")
    private String arriveLocation;

    @TableField("create_by")
    private String createBy;

    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField("update_by")
    private String updateBy;

    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private String orderNumber;
}
